import request from '@/utils/request'

// 查询考勤日期列表
export function listFullattendance(query) {
  return request({
    url: '/sl/fullattendance/list',
    method: 'get',
    params: query
  })
}

// 查询考勤日期详细
export function getFullattendance(faId) {
  return request({
    url: '/sl/fullattendance/' + faId,
    method: 'get'
  })
}

// 新增考勤日期
export function addFullattendance(data) {
  return request({
    url: '/sl/fullattendance',
    method: 'post',
    data: data
  })
}

// 修改考勤日期
export function updateFullattendance(data) {
  return request({
    url: '/sl/fullattendance',
    method: 'put',
    data: data
  })
}

// 删除考勤日期
export function delFullattendance(faId) {
  return request({
    url: '/sl/fullattendance/' + faId,
    method: 'delete'
  })
}
